package project.Service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import project.Mapper.FileMapper;
import project.Service.FileService;

@Service
public class FileServiceImpl implements FileService {
    @Autowired
    FileMapper fileMapper;

    @Override
    public String selectImgByUsername(String username) {
        return fileMapper.selectImgByUsername(username);
    }

    @Override
    public void insertImg(String username, String img) {
        fileMapper.insertImg(username, img);
    }

    @Override
    public void updateImgByUsername(String username, String img) {
        fileMapper.updateImgByUsername(username, img);
    }
}
